cmake_minimum_required(VERSION 3.1)

project(ImageView
    LANGUAGES CXX
    VERSION 0.0.1
    DESCRIPTION "View image"
)

find_package(OpenCV REQUIRED)
find_package(gflags REQUIRED)

add_executable(${PROJECT_NAME} main.cpp)
target_include_directories(${PROJECT_NAME}
    PUBLIC
        ${OpenCV_INCLUDE_DIRS}
        ${gflags_INCLUDE_DIR}
)
target_link_libraries(${PROJECT_NAME}
    PUBLIC
        ${OpenCV_LIBS}
        ${gflags_LIBRARIES}
)

# install
install(TARGETS ${PROJECT_NAME}
    DESTINATION bin
)